<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>注册</title>
    <link rel="stylesheet" href="../assets/css/jquery.mobile-1.4.5.min.css">
    <script src="../assets/js/jquery-1.11.1.min.js"></script>
    <script src="../assets/js/jquery.mobile-1.4.5.min.js"></script>
    <script>
        function getPageParams(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg); //匹配目标参数
            if (r != null) return unescape(r[2]); return null; //返回参数值
        };
        var shareCouponParams =  location.search;
        var SharedCoupon = getPageParams("share_coupon"); //分享券编码
        if(SharedCoupon) {
            SharedCoupon = JSON.parse(decodeURI(decodeURI(SharedCoupon)))
            var SHARE_ID = SharedCoupon.SHARE_ID;
            var productName = SharedCoupon.productName;
            sessionStorage.setItem("STORE_ID",SharedCoupon.STORE_ID);
        }
    
        setTimeout('showLoader()', 100);//这里要延迟一下，直接调用无法显示加载器
        //显示加载器.for jQuery Mobile 1.2.0
        function showLoader() {
            $.mobile.loading('show', {
                text: '正在加载中...', //加载器中显示的文字
                textVisible: true, //是否显示文字
                theme: 'a',        //加载器主题样式a-e
                textonly: false,   //是否只显示文字
                html: ""           //要显示的html内容，如图片等
            });
        }
        //隐藏加载器.for jQuery Mobile 1.2.0
        function hideLoader() {
            $.mobile.loading('hide');
        }
        window.onload = function () {
            hideLoader();
            setTimeout('hideLoader()', 800);//延迟5秒，模拟图片和多媒体加载耗时
        }
        $(document).ready(function () {
            //setTimeout('hideLoader()', 5000);//延迟5秒，模拟页面请求数据耗时，ajax异步请求等放在这里
        })
    </script>
    <!--<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>  &lt;!&ndash;微信js接口引入&ndash;&gt;-->
    <script charset="utf-8" src='http://map.qq.com/api/js?v=2.exp'></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>  <!--微信js接口引入-->
    <script src="../assets/js/jweixin-1.2.0.js"></script>  <!--微信js接口引入-->
    <link rel="stylesheet" href="../css/register.css">
    <link rel="stylesheet" href="../common/common.css">
    <script src="../co"></script>
    <script src="../common/sprintf.js"></script>
    <script src="../config.js"></script>
</head>
<body>
</div>
<div data-role="page" class="page">
    <div data-role="header" class="header">
        <div class="banner">
            <div class="head-pic">
                <div class="head-img">
                    <img id="user_head_img" class="default_head" src="../assets/img/default_head.png" alt="">
                    <img id="gender" class="gender" src="../assets/img/ico_nv.png" alt="">
                </div>
                <!--<div class="clear"></div>-->
            </div>
            <div class="sex-nickName">
                <!--<span class="sex-font"><i class="icon iconfont icon-sexw"></i></span>-->
                <span id="nickName" class="nick-name">小啡</span>
            </div>
            <div class="addr-constellation">
                <span id="address" class="vertical-line">杭州</span>
            </div>
        </div>
    </div>
    <!--<div class="clear"></div>-->
    <div data-role="content" class="content pingfang">
        <form method="post" action="" onsubmit="submitPhone(this);return false;">
            <div class="register-item">
                <span class="edit-item"><img class="icon-vertif" src="../assets/img/ico_account.png" alt=""></span>
                <input id="phone" name="phone" oninput="showRemove(this);" onkeypress="return (/[\d]/.test(String.fromCharCode(event.charCode)))" data-role="none" type="number" class="phone-ipt pf" placeholder="请输入手机号">
                <span class="clear-number" ontouchend="clearPhone();"> <img class="clearPhone" src="../assets/img/ico_clear.png" alt=""></span>
            </div>
            <div class="register-item">
                <span class="edit-item"><img class="icon-vertif" src="../assets/img/ico_password.png" alt=""></span>
                <input id="verification" name="vertification" oninput="checkCanRegister(0);" onkeypress="return (/[\d]/.test(String.fromCharCode(event.charCode)))" data-role="none" type="number" class="vertif-ipt pf" placeholder="请输入验证码">
                <button id="gain_vertif" type="button" data-role="none" class="gain-vertif" ontouchend="gainVertif(this);" disabled="true">获取验证码</button>
            </div>
            <div class="agreement">
                <span class="agree-check"><input id="agreement_check" type="checkbox" data-role="none"></span>
                <span class="agreement-item">我已经阅读并同意《使用条款》</span>
            </div>
            <div class="toRegister">
                <button type="submit" id="register" class="register pf" disabled>立即注册</button>
            </div>
        </form>
    </div>
    <!--模态框-->
    <div class="fixed-panal pf">
        <div class="fixed-modal">
            <img class="show-icon" src="../assets/img/ico_success.png" alt="">
            <div class="modal-text">手机号码修改成功</div>
            <div class="modal-footer">
                5秒后自动跳至首页
            </div>
        </div>
    </div>
</div>
<script src="../assets/js/fontAdjust.js"></script>
<script src="../js/register.js"></script>
</body>
</html>